home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-07-18 | 2.7 KB | 79 lines | [TEXT/GEOL] |
- Item 3248621 13-July-89 11:06
-
- From: D2086 Efficient Field Svc, C Faith, PRT
-
- To: MACAPP.TECH$ MACAPP Tech
-
- cc: D0107 TML Systems Suppt,Leonard, PRT
-
- Sub: TML/MacApp, not quite useable
-
- I have some concern with TML Pascal and MacApp that I would like to see
- resolved.
-
- I would love to use TMLPascal all the time, It is blazing fast compared to MPW
- Pascal. I think the Tom Leonard et al. have done a fine job with it. With a
- few small exceptions that actually impact its usefulness with MacApp
- considerably.
-
- These concerns relate to MacApp compatibility. I know that you can get
- TMLPascal to compile MacApp itself (I have done so), but can you get it to
- compile any programs that you have written using MacApp. No, not without
- jumping through a lot of hoops.
-
- I am not concerned with the changes that need to be made to the MacApp source,
- these are not really that big of a deal. (Although I wonder why there are any
- compatibilities, seems they would sell more If they where 100% absolutely
- positively compatible)
-
- My big concern is that it does not like things like the following:
-
- TEditText(aMyView.FindSubView('edt1')).GetText(theText);
-
- It claims this is not proper pascal. It wants you to assign the value of
- FindSubView to an abject and then have that object call its GetText like this;
-
- VAR
- anEditText: TEditText;
-
- anEditText := TEditText(aMyView.FindSubView('edt1'));
- anEditText.GetText(theText);
-
- This is much messier than the original way, which is used in all the example
- programs.
-
- To have a function without an assignment may not be proper pascal but it sure
- seems that it should be proper object pascal.
-
- What should a function do anyway? Should it not be useable whereever a
- variable of the type that it returns is useable. You can do this:
-
- Writeln('4 + 5 = ',SUM(4,5));
-
- If sum is a function that returns the sum.
-
- TML's restricted use of function return values is crippling and predates Object
- Pascal when there was no utility in a function return value existing alone.
- You cannot do this:
-
- SUM(4,5);
-
- if SUM is a function. This is not the same as
-
- TEditText(aMyView.FindSubView('edt1')).GetText(theText);
-
- where the function is not really just standing there but is used to implement a
- method GetText.
-
- In summary I WANT to use TML Pascal, but I will not because of this. I don't
- really think it would be that difficult to change this either, relaxing the
- syntax checking for this would be relatively trivial compared to the obviously
- immense work involved in writing this otherwise excellent compiler.
-
- If we can convince Tom that this change would be good then perhaps we all can
- use this good tool.
-
- Curtis Faith
-
-
-